<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php include(VIEWPATH."public/header_title.php")?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />

<link href="<?php echo _get_cfg_path('admin_css')?>base.css" rel="stylesheet" type="text/css" />
<link href="<?php echo _get_cfg_path('admin_css')?>common.css" rel="stylesheet" type="text/css" />
<link href="<?php echo _get_cfg_path('admin_css')?>main.css" rel="stylesheet"/>
<link href="<?php echo _get_cfg_path('admin_css')?>right.css" rel="stylesheet"/>
<link href="<?php echo _get_cfg_path('admin_css')?>index.css" rel="stylesheet"/>
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
</head>
<body>
<?php //include(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">

    <div class="">
        <div class="member clearfix">
        	<a href="/admin/activity" class="topBtn">返回列表</a>
	<?php echo validation_errors('<div class="valid_error">', '</div>');?>
            <?php //include(VIEWPATH."m/public/left_menu.php");?>
            <div class="uc_content">
            	<?php //include(VIEWPATH."m/public/notice.php");?>
                <div class="clearfix uitopg">
                    <div class="authent">
                        <?php echo validation_errors(); ?>
                        <form action="/admin/activity/add?id=<?php echo (!empty($info['id'])) ? _get_key_val($info['id']) : 0;?>" method="post" enctype="multipart/form-data">
                        <div class="jsq_uet">
                        	<table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="100"><span class="tips">*</span>通告性质</td>
                              <td>
                                  <select onchange="LoanTypeSelect(this.value);" class="txt sele selt" id="select_act_type" style="width:173px;" name="type">
                                  <?php foreach ($oSysActType as $key => $v):?>
                                  <option value="<?=$key?>"<?php if( !empty($info['type']) && $info['type']==$key ) echo ' selected'; ?>><?=$v?></option>
                                  <?php endforeach;?>
                                  </select>
                              </td>
                            </tr>                   
                          </table>
                        </div>

                        <table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                              <td width="100"><span class="tips">*</span>通告主题</td>
                              <td><input id="text" type="text" class="txt" placeholder="公司名/品牌名/店铺名"  name="title" value="<?php if( !empty($info['title']) ) echo $info['title']; ?>" /></td>
                          </tr>
                          <tr>
                              <td><span class="tips">*</span>工作性质</td>
                                <td>
                                    <select name="category" class="txt" style="width:173px;">
                                        <option value="平面拍摄" <?php if(isset($info['category']) && ('平面拍摄' == $info['category'])) {?>selected<?php }?>>平面拍摄</option>
                                        <option value="影视拍摄" <?php if(isset($info['category']) && ('影视拍摄' == $info['category'])) {?>selected<?php }?>>影视拍摄</option>
                                        <option value="T台走秀" <?php if(isset($info['category']) && ('T台走秀' == $info['category'])) {?>selected<?php }?>>T台走秀</option>
                                        <option value="活动展示" <?php if(isset($info['category']) && ('活动展示' == $info['category'])) {?>selected<?php }?>>活动展示</option>
                                        <!-- <option value="其他" <?php if(isset($info['category']) && !in_array($info['category'], $noticeArray)) {?>selected<?php }?>>其他</option> -->
                                    </select> 
                                </td>
                          </tr>
                          <tr>
                              <td><span class="tips">*</span>费用预算</td>
                              <td><input id="cost" name="cost" type="text" class="txt" placeholder="费用预算（元）" value="<?php echo (!empty($info['workfee']))?$info['workfee']:'';?>"/></td>
                          </tr>
                        </table>                  
                                                
                        <div id="ID_BankLoanRate" class="jsq_uet" style="display:<?php echo (!empty($info['type']) && ($info['type'] == 3))?'block':'none' ?>">
                        	<table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">                              
                                <tr>
                                  <td width="100"><span class="tips">*</span>制作要求</td>
                                  <td><input name="m_content" id="m_require" type="text" class="txt" placeholder="制作要求" value="<?php echo (!empty($info['summary']))?$info['summary']:'';?>"/></td>
                                </tr>
                               	<tr>
                                    <td><span class="tips">*</span>产品数量</td>
                                    <td><input name="m_num" id="m_num" type="text" class="txt" placeholder="产品数量" value="<?php echo (!empty($info['pro_num']) ? $info['pro_num'] :'')?>"/></td>
                                </tr>
                            </table>
                        </div>
                        
                        <div id="ID_FundLoanRate" class="jsq_uet" style="display: <?php echo ((!empty($info['type']) && (($info['type'] == 1) || (2 == $info['type']))) || (empty($info['type'])))?'block':'none' ?>">
                        	<table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="100"><span class="tips">*</span>模特要求</td>
                                  <td>
                                  	<input type="text" id="model_summary" class="txt" placeholder="请填写模特身高、性别，人数，风格等要求" name="summary" value="<?php if( !empty($info['summary']) ) echo $info['summary']; ?>"/>
								    <!-- <input id="sex" type="text" class="txt" placeholder="性别" name="sex" value="<?php echo !empty($sex) ? $sex : ''?>" style="width:60px;"/>
								    <input id="people_num" type="text" class="txt" placeholder="人数" name="people_num" value="<?php echo !empty($people_num) ? $people_num : ''?>" style="width:60px;"/>
                                    <input id="height" type="text" class="txt" placeholder="身高" name="height" value="<?php echo !empty($height)?$height:''?>" style="width:60px;"/>
                                    <input id="style" type="text" class="txt" placeholder="风格" name="style" value="<?php echo !empty($style) ? $style : ''?>" style="width:60px;"/> -->
                                  </td>
                                </tr>
                            </table>
                        </div>
                        
                        <div id="ID_AllPayRate" class="jsq_uet" style="display: <?php echo ((!empty($info['type']) && ($info['type'] == 1)) || (empty($info['type'])))?'block':'none' ?>">
                        	   <table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="100"><span class="tips">*</span>面试时间</td>
                                  <td>
                                      <input id="interview_begin_time" name="interview_begin_time" class="Wdate txt" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" placeholder="面试时间" value="<?php echo (!empty($info['begtime'])) ? date("Y-m-d H:i:s",$info['begtime']) : ''; ?>" style="border:1px solid #dcdcdc;height:24px;"/>
                                  </td>
                                </tr>
                                <tr>
                                  <td><span class="tips">*</span>面试地点</td>
                                  <td><input id="address" name="address" type="text" class="txt" placeholder="面试地点" value="<?php echo (!empty($info['place']))?$info['place']:'';?>"/></td>
                                </tr>
                            </table>
                        </div>
                        
                        <div id="ID_BankLoanAmount" class="jsq_uet" style="display:<?php echo (empty($info['type']) || ($info['type'] == 1))?'none':'block' ?>;">
                            <table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr>
                                        <td width="100"><span class="tips">*</span>工作时间</td>
                                        <td>
                                            <input type="text" id="work_time" class="Wdate txt" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="工作时间" name="begtime" value="<?php if( !empty($info['begtime']) ) echo date("Y-m-d",$info['begtime']); ?>" style="border:1px solid #dcdcdc;height:24px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><span class="tips">*</span>工作地点</td>
                                        <td><input  type="text" class="txt" id="work_address" placeholder="工作地点"  name="place" value="<?php if( !empty($info['place']) ) echo $info['place']; ?>" /></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="jsq_uet">
                        	<table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                               <tr>
                                  <td width="100"><span class="tips">*</span>报名截止时间</td>
                                  <td><input id="endtime" name="endtime" type="text" id="c1" class="Wdate txt" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="报名截止时间" value="<?php echo (!empty($info['inendtime'])) ? date('Y-m-d',$info['inendtime']) : ''; ?>" style="border:1px solid #dcdcdc;height:24px;"/></td>
                              </tr>
                              <tr>
                                  <td width="100"><span class="tips">*</span>通告封面</td>
                                  <td>
                                      <div id="previews" class="drsMoveHandle">
                                          <img id="show_img" border=0 src='<?php if( !empty($info['img']) ) echo  _get_image_url($info['img']);?>'>
                                      </div>
                                      <div class="f_note">
                                          <p>尺寸：509×280像素</p>
                                          <input type="hidden"  name="img" id="img" value="<?php if( !empty($info['img']) ) echo $info['img']; ?>">
                                          <em><i class="icoPro16"></i>仅支持JPEG，上传图片大小不能超过1M</em>
                                          <div class="file_but">
                                              <input value="选择照片" length-data="509" height-data="280" imgid-data="show_img" imgval-data="img" class="cut_pic showimg_upload" type="button"/>
                                          </div>
                                      </div>
                                  </td>
                              </tr>
                              <tr>
                                  <td width="100" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;通告详情</td>
                                  <td>
                            		<textarea id="introduction" class="txt text" name="introduction"><?php echo (!empty($info['content'])) ? $info['content']: '';?></textarea>
                                  </td>
                              </tr>
                              <tr>
                                  <td  width="100" style="padding-top:20px;" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;其他备注</td>
                                  <td style="padding-top:20px;">
                                      <textarea class="txt text" name="other"><?php echo (!empty($info['other']) ? $info['other'] : '')?></textarea>
                                  </td>
                              </tr>
                              
                              	<tr>
						            <td height="25" align="right">参与名额：</td>
						            <td align="left" class="padL10"><input type="text" name="actnum" value="<?php if( !empty($info['actnum']) ) echo $info['actnum']; ?>" /></td>
						        </tr>
						         <tr>
						            <td height="25" align="right">假报名人数：</td>
						            <td align="left" class="padL10"><input type="text" name="innumfake" value="<?php if( !empty($info['innumfake']) ) echo $info['innumfake']; ?>" /></td>
						        </tr>
						         <tr>
						            <td height="25" align="right"><span class="tips"></span> 报名人数：</td>
						            <td align="left" class="padL10"><input type="text" name="innum" value="<?php if( !empty($info['innum']) ) echo $info['innum']; ?>" /></td>
						        </tr>
						         <tr>
						            <td height="25" align="right"><span class="tips">*</span> 审核/显示：</td>
						            <td align="left" class="padL10">
						            	<input type="radio" name="display" value="1" <?php if( !empty($info['display']) && $info['display']==1 ) echo ' checked' ?> />审核显示
						            		<input type="radio" name="display" value="2" <?php if( !empty($info['display']) && $info['display']==2 ) echo ' checked' ?> />不显示
						            </td>
						        </tr>
                            </table>
                        </div>
                        
                        <div class="jsq_uet">
                        	<table class="aut_tab i_notice_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                            	<tr style="border-bottom:none;">
                                    <td width="100">&nbsp;</td>
                                    <td><input id="submitSix" name="" type="submit" class="but" value="保存"/></td>
                                </tr>
                            </table>
                        </div>
                        </form>   
                    </div>
                </div>
            </div>
        </div>
    </div> 
</div>

<!-- 弹出层 -->
<div class="popover-mask"></div>
<div class="popover complaint popover_works" style="height:auto;">
    <div class="compl_top">
        <span class="fl" id="X-title">添加图片</span>
        <a href="javascript:;" id="TX-win-close" title="关闭" class="close fr">×</a></div>
  <div class="compl_con">
      <form action="/public/upload/catupload" method="post" id="catupload_form" enctype="multipart/form-data">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <input type="hidden" name="albumid" id="albumid" value=""/>
            <input type="hidden" name="agid" id="agid" value="<?=$this->input->get('agid')?>"/>
            <tr><td height="10"></td></tr>
            <tr>
              <td width="80"><font id="pic_label">照片：</font></td>
              <td>
              	<div class="filebox" style="height:91px;">
              	<input type="hidden" id="show_cat_img_width"/>
              	<input type="hidden" id="show_cat_img_height"/>
              	
              	 <input type="hidden" name="width" id="length_size" />
              	 <input type="hidden" name="height" id="height_size" />
              	 <input type="hidden" name="rel_width" id="rel_width_size"/>
              	 <input type="hidden" name="rel_height" id="rel_height_size"/>
              	 <input type="hidden" id="img_url" />
              	 <input type="hidden" id="img_val" />
                 <div class="upload_btn photo_left_bg" style="top:0px;">
                    <a href="javascript:" style="text-align:center;margin-top:10px;">选择图片<input type="file" onChange="catimg_upload(this)" id="cover" name="cover"></a>
                    <br/>
                    <span style="margin-left:20px;">支持JPG/PNG/GIF，上传图片大小不能超过1M</span>
                 </div>
              	   <div class="left fl">
                     <div id="localImag"><img id="preview1" src="" style="display:none;"/></div>
                     <!--通过生成尺寸和旋转角度 后台获取尺寸和旋转角度再进行裁剪-->
                     <input id="id_top" type="hidden" name="top" value="0">  <!--x轴-->
                     <input id="id_left" type="hidden" name="left" value="0"><!--y轴-->
                     <input id="id_right" type="hidden" name="right" value="0"><!--w轴-->
                     <input id="id_bottom" type="hidden" name="bottom" value="0"><!--h轴-->
                     <input id="id_widthPro" type="hidden" name="widthPro" value=""><!--宽度比例，原：现-->
                     <input id="id_heightPro" type="hidden" name="heightPro" value=""><!--高度比例，原：现-->
                     <input id="rotation" type="hidden" value="0" name="rotation">
                   </div>
                </div>
              </td>
            </tr>
            <tr><td height="10"></td></tr>
            <tr><td height="10"></td></tr>
            <tr>
              <td>&nbsp;</td>
              <td><input class="but commit_album" name="" onclick="catimg_save()"  type="button" value="保存"/><span id="T-msg"></span></td>
            </tr>
        </table>
      </form>
    </div>
</div>

<!--mainbody-->
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?=_get_cfg_path('js')?>jquery.imgareaselect.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.SuperSlide.2.1.1.js"></script>
<script>jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true});</script>
<!--日历时间选择-->
<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>My97DatePicker/WdatePicker.js"></script>
<!--上传图片-->
<script charset="utf-8" src="<?php echo _get_cfg_path('lib')?>uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet"/>
<!--编辑器-->
<script charset="utf-8" src="<?php echo _get_cfg_path('lib')?>kindeditor/kindeditor-min.js" type="text/javascript"></script>
<script charset="utf-8" src="<?php echo _get_cfg_path('lib')?>kindeditor/lang/zh_CN.js" type="text/javascript"></script>

<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/info.js"></script>
<!-- fileupload -->
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/ajaxfileupload.js"></script>
<script type="text/javascript">
var loantype = 0; //0 代表 拍照；1 代表 活动；2 代表 工作；  3 代表 面试；
function LoanTypeSelect(Checked)
{
//	if(Checked==0)
//	{
//	  document.getElementById("ID_BankLoanAmount").style.display = "block";	
//	  document.getElementById("ID_FundLoanAmount").style.display = "block";
//	  document.getElementById("ID_BankLoanRate").style.display = "none";
//	  document.getElementById("ID_FundLoanRate").style.display = "none";
//	  document.getElementById("ID_AllPayRate").style.display = "none";
//	  loantype = 0;
//	}
	
	if(Checked==3)
	{
		document.getElementById("ID_BankLoanAmount").style.display = "block";
		document.getElementById("ID_BankLoanRate").style.display = "block";
		document.getElementById("ID_FundLoanRate").style.display = "none";
		document.getElementById("ID_AllPayRate").style.display = "none";
		loantype = 1;
	}

	if(Checked==2)
	{        
		document.getElementById("ID_BankLoanAmount").style.display = "block";
	  document.getElementById("ID_BankLoanRate").style.display = "none";
	  document.getElementById("ID_FundLoanRate").style.display = "block";
	  document.getElementById("ID_AllPayRate").style.display = "none";
		loantype = 2;
	}
	
	if(Checked==1)
	{        
		document.getElementById("ID_BankLoanAmount").style.display = "none";
	  document.getElementById("ID_BankLoanRate").style.display = "none";
	  document.getElementById("ID_FundLoanRate").style.display = "block";
	  document.getElementById("ID_AllPayRate").style.display = "block";
		loantype = 3;
	}
	
	LoanRateTextUpdate();
}

var editor, o_editer;
  KindEditor.ready(function(K) {
    editor = K.create('textarea[name="introduction"]', {
      resizeType : 1,
      allowPreviewEmoticons : false,
      allowImageUpload : true,
      items : [
        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
    o_editer = K.create('textarea[name="other"]', {
      resizeType : 1,
      allowPreviewEmoticons : false,
      allowImageUpload : true,
      items : [
        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
});

<?php $timestamp = $this->timestamp;?>
$(function() {
  setTimeout(function(){
      $('#img_upload').uploadify({
        'formData'     : {
          'timestamp' : '<?php echo $timestamp;?>',
          'token'     : "<?php echo md5($this->config->item('encryption_key') . $timestamp );?>",
          'type' : 'img',
          'uid' : 0
        },
        'auto':true,
        //'buttonClass':'inp_btn',
        'fileSizeLimit' : '1024KB',
        'buttonText':'选择照片',
        'fileTypeExts': '*.jpg;*.png;*.jpeg',
        //'buttonImage' : '{$js_url}uploadify/button.png',
        'swf'      : '<?php echo _get_cfg_path("lib")?>uploadify/uploadify.swf',
        'uploader' : '/public/upload/uploadimg',
        'onUploadSuccess' : function(file, data, response) {
          if (!data){
           alert('上传失败');
           return;
          }
          data = data.split('|');
          if (data[0] == 100){
            $('#img').nextAll('em').html('<i class="icoErr16"></i>'+data[1]);
          }else if(data[0] == 200 && data[1]!=''){
            var imgpath=data[1];
            $('#img').val(imgpath);
            $('#img').nextAll('em').html('<i class="icoCor16"></i>');
            $('#show_img').attr('src','/'+imgpath);
          }
        }

      });
    
  },10);
});
</script>

</html>
<script>
//JS测试
$(function(){
	$('#submitSix').on('click',function(){
		//名称
		if($('#text').val()==null || $('#text').val()==''){
				alert("请输入名称");
				return false;
			
			}
		//费用
		if($('#cost').val()==null || $('#cost').val()==''){
				alert("请输入费用");
				return false;
			}
		if($("#select_act_type").val() == 1 || $("#select_act_type").val() == 2)
		{
			var summary = $.trim($("#model_summary").val());
			if(summary == null || summary == '')
			{
				alert("请输入模特要求");
				return false;
			}
		}
		//通告性质
		if($("#select_act_type").val() == 1)
		{
			/*模特面试*/
			//面试时间
			if($('#interview_begin_time').val()==null || $('#interview_begin_time').val()==''){
					alert("请输入面试时间");
					return false;
				}
			//面试地点
			if($('#address').val()==null || $('#address').val()==''){
					alert("请输入面试地点");
					return false;
				}
		}
		else if($("#select_act_type").val() == 2)
		{
			/*模特工作*/
			//工作时间
			if($('#work_time').val()==null || $.trim($('#work_time').val())==''){
					alert("请输入工作时间");
					return false;
				}
			//工作地点
			if($('#work_address').val()==null || $.trim($('#work_address').val())==''){
					alert("请输入工作地点");
					return false;
				}
		}
		else
		{
			/*制作通告*/
			//制作要求
			if($("#m_require").val()==null || $.trim($("#m_require").val())=='')
			{
				alert("请输入制作要求");
				return false;
			}
			//产品数量
			var m_num = $.trim($("#m_num").val());
			if(m_num==null || m_num=='')
			{
				alert("请输入产品数量");
				return false;
			}
			if(isNaN(m_num))
			{
				alert("请输入数字");
				return false;
			}
			//工作时间
			if($('#work_time').val()==null || $.trim($('#work_time').val())==''){
					alert("请输入工作时间");
					return false;
				}
			//工作地点
			if($('#work_address').val()==null || $.trim($('#work_address').val())==''){
					alert("请输入工作地点");
					return false;
				}
		}
		//报名截止时间
		if($('#endtime').val()==null || $('#endtime').val()==''){
				alert("请输入报名截止的时间");
				return false;
			}
		//通告封面
		if($("#img").val()==null || $("#img").val() == '')
		{
			alert("请选择通告封面");
			return false;
		}
	});		
});

</script>
















<!-- 
<html>
<head>
	<link href="<?php echo _get_cfg_path('admin_css')?>base.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>common.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>main.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('admin_css')?>right.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('admin_css')?>index.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
</head>

<body>

<div class="right_con common adduser">
	

	<a href="/admin/activity" class="topBtn">返回列表</a>
	<?php echo validation_errors('<div class="valid_error">', '</div>');?>
	<form action="/admin/activity/save<?php if( !empty($info['id']) ) echo '?id='. _get_key_val( $info['id'] ); ?>" method="post">

		<table class="addTable">
			<tbody>
				<tr>
		            <td width="150" height="25" align="right"><span class="tips">*</span> 活动名称：</td>
		            <td align="left" class="padL10"><input type="text" name="title" value="<?php if( !empty($info['title']) ) echo $info['title']; ?>" /></td>
		        </tr>
		        <tr>
		            <td width="150" height="25" align="right"><span class="tips">*</span> 活动类型：</td>
		            <td align="left" class="padL10">
		            	<select name="type">
		            		<option value="0">请选择类型</option>
		            		<?php foreach ($oSysActType as $key => $v):?>
							<option value="<?=$key?>"<?php if( !empty($info['type']) && $info['type']==$key ) echo ' selected'; ?>><?=$v?></option>
							<?php endforeach;?>
						</select>
		            	</td>
		        </tr>
		        <tr>
		            <td height="25" align="right"><span class="tips">*</span> 活动图片：</td>
		            <td align="left" class="padL10">
		            	<div id="previews" class="drsMoveHandle">
	                        <img id="show_img" border=0 src='<?php if( !empty($info['img']) ) echo  _get_image_url($info['img']);?>'>
	                    </div>
	                    <div class="f_note">
	                        <p>尺寸：509×280像素</p>
	                        <input type="hidden"  name="img" id="img" value="<?php if( !empty($info['img']) ) echo $info['img']; else echo 'http://'; ?>">
	                        <em><i class="icoPro16"></i>仅支持JPEG，上传图片大小不能超过1M</em>
	                        <div class="file_but">
	                            <input id="img_upload" name="img_upload" value="选择照片" class="inp_file" type="file">
	                        </div>
	                    </div>
	            	</td>
		        </tr>
		        <tr>
		            <td height="25" align="right"> 工作简介：</td>
		            <td align="left" class="padL10"><input type="text" name="summary" value="<?php if( !empty($info['summary']) ) echo $info['summary']; ?>" style="width:300px" maxlength="200" /></td>
		        </tr>
		        <tr>
		            <td height="25" align="right"> 工作费用：</td>
		            <td align="left" class="padL10"><input type="text" name="workfee" value="<?php if( !empty($info['workfee']) ) echo $info['workfee']; ?>" style="width:300px" maxlength="200" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips"></span> 开始时间：</td>
                            <td align="left" class="padL10"><input type="text" name="begtime" value="<?php if(!empty($info['begtime'])){ echo (is_numeric($info['begtime']) ? date('Y-m-d H:i:s', (int)$info['begtime']) : $info['begtime']);}?>" readonly="readonly" onclick="WdatePicker()" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips"></span> 结束时间：</td>
		            <td align="left" class="padL10"><input type="text" name="endtime" value="<?php if( !empty($info['endtime']) ) echo date('Y-m-d',$info['endtime']); ?>" readonly="readonly" onclick="WdatePicker()" /></td>
		        </tr>
		        <tr>
		            <td height="25" align="right"><span class="tips"></span> 报名截止时间：</td>
		            <td align="left" class="padL10"><input type="text" name="inendtime" value="<?php if( !empty($info['inendtime']) ) echo date('Y-m-d',$info['inendtime']); ?>" readonly="readonly" onclick="WdatePicker()" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips"></span> 地点：</td>
		            <td align="left" class="padL10"><input type="text" name="place" value="<?php if( !empty($info['place']) ) echo $info['place']; ?>" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right">具体地址：</td>
		            <td align="left" class="padL10"><input type="text" name="address" value="<?php if( !empty($info['address']) ) echo $info['address']; ?>" /></td>
		        </tr>
		        <tr>
		            <td height="25" align="right">参与名额：</td>
		            <td align="left" class="padL10"><input type="text" name="actnum" value="<?php if( !empty($info['actnum']) ) echo $info['actnum']; ?>" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right">假报名人数：</td>
		            <td align="left" class="padL10"><input type="text" name="innumfake" value="<?php if( !empty($info['innumfake']) ) echo $info['innumfake']; ?>" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips"></span> 报名人数：</td>
		            <td align="left" class="padL10"><input type="text" name="innum" value="<?php if( !empty($info['innum']) ) echo $info['innum']; ?>" /></td>
		        </tr>
		         <tr>
		            <td height="25" align="right"><span class="tips">*</span> 审核/显示：</td>
		            <td align="left" class="padL10">
		            	<input type="radio" name="display" value="1" <?php if( !empty($info['display']) && $info['display']==1 ) echo ' checked' ?> />审核显示
		            		<input type="radio" name="display" value="2" <?php if( !empty($info['display']) && $info['display']==2 ) echo ' checked' ?> />不显示
		            </td>
		        </tr>
				<tr>
		            <td></td>
		            <td class="padL10"><input type="submit" class="sub" value="提交"></td>
		        </tr>
		    </tbody>
		</table>
	</form>
</div>

<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script src="<?php echo _get_cfg_path('lib')?>uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script type="text/javascript">
<?php $timestamp = $this->timestamp;?>
$(function() {
	setTimeout(function(){
	    $('#img_upload').uploadify({
	      'formData'     : {
	        'timestamp' : '<?php echo $timestamp;?>',
	        'token'     : '<?php echo md5($this->config->item('encryption_key') . $timestamp );?>',
	        'type' : 'img',
	        'uid' : 0
	      },
	      'auto':true,
	      //'buttonClass':'inp_btn',
	      'fileSizeLimit' : '1024KB',
	      'buttonText':'选择照片',
	      'fileTypeExts': '*.jpg;*.png;*.jpeg',
	      //'buttonImage' : '{$js_url}uploadify/button.png',
	      'swf'      : '<?php echo _get_cfg_path("lib")?>uploadify/uploadify.swf',
	      'uploader' : '/public/upload/uploadimg',
	      'onUploadSuccess' : function(file, data, response) {
	        if (!data){
	         alert('上传失败');
	         return;
	        }
	        data = data.split('|');
	        if (data[0] == 100){
	          $('#img').nextAll('em').html('<i class="icoErr16"></i>'+data[1]);
	        }else if(data[0] == 200 && data[1]!=''){
	          var imgpath=data[1];
	          $('#img').val(imgpath);
	          $('#img').nextAll('em').html('<i class="icoCor16"></i>');
	          $('#show_img').attr('src','/'+imgpath);
	        }
	      }

	    });

		
	},10);
});
</script>
</body>
</html> -->